package com.huawei.leetcode;

import java.util.List;
import java.util.Objects;

public class Code2828 {
    public static void main(String[] args) {

    }

    public boolean isAcronym(List<String> words, String s) {
        if(words.size()!=s.length()){
            return false;
        }
        char[] chars = s.toCharArray();

        for (int i = 0; i < words.size(); i++) {
            char c = words.get(i).charAt(0);
            if (!Objects.equals(chars[i], c)) {
                return false;
            }
        }
        return true;
    }
}
